package com.chendx.store.api.goods;

import com.chendx.model.common.dtos.ResponseResult;
import com.chendx.model.goods.dto.SpuDto;
import com.chendx.model.goods.dto.SpuInfoDto;
import com.chendx.model.goods.pojo.Spu;

import java.util.List;

/**
 * Created by chendx on 2022/4/18.
 */
public interface SpuControllerApi {

    /***
     * 根据ID查询Spu数据
     * @param id
     * @return
     */
    public Spu findById(Long id);

    /**
     * 获取spu列表
     * @return
     */
    public List<Spu> spuList();

    public ResponseResult spuInfos(SpuDto dto);

    public ResponseResult info(String id);

    public ResponseResult save(SpuInfoDto dto);
}
